package com.hp.gxw.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangping
 * @since 2024-02-29
 */
public interface ReportMapper {

    List<Map<String, Object>> getCompletedCols(@Param("month") String month);

    List<Map<String, Object>> getProductionCols(@Param("month") String month);

    Page<Map<String, Object>> getCompletedData(Page<Object> page, @Param("month") String month, @Param("ew") Wrapper<Object> ew);

    Page<Map<String, Object>> getProductionData(Page<Object> page, @Param("month") String month, @Param("ew") Wrapper<Object> ew);

    List<Map<String, Object>> getCompletedData(@Param("month") String month, @Param("ew") Wrapper<Object> ew);

    List<Map<String, Object>> getProductionData(@Param("month") String month, @Param("ew") Wrapper<Object> ew);

    int checkTableExist(@Param("tableName") String tableName);

    Page<JSONObject> getSaleSettlePage(Page<Object> page, @Param("ew") QueryWrapper<Object> ew);

    List<Map<String, Object>> getSaleSettleList(@Param("ew")QueryWrapper<Object> ew);
}
